<?php
require_once 'lib/validation/RegEx.php';
/**
 * Description of Isbn
 *
 * @author      Maciej Zawieja.
 * @link        http://akvus.pl
 * @package     Akvus Framework.
 * @subpackage  Libraries.
 * @copyright   2011 All rights reserved for Maciej Zawieja.
 * @version     1.0.0 - 19.08.2011 (Framework 1.3)
 */
class Isbn extends RegEx implements iValidation {

    const PARAMS_QUANTITY = 0;

    function   __construct() {
        $this->Pattern( "ISBN\x20(?=.{13}$)\d{1,5}([- ])\d{1,7}\1\d{1,6}\1(\d|X)$" );
    }
}